﻿using MQTT.Chat.ViewModel;
using MQTT.Model.Servers;
using System.Windows;
using System.Windows.Input;

namespace MQTT.Chat.View
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainView : Window
    {
        public MainView()
        {
            InitializeComponent();
            this.DataContext = new MainViewModel();           
        }


        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (e.LeftButton==MouseButtonState.Pressed)
                DragMove();
        }
    }
}
